home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / GraphicsCards / StormMesa / src-glut / glutwin32.h < prev    next >
C/C++ Source or Header  |  1998-12-15  |  2KB  |  49 lines

  1. #ifndef __glutwin32_h__
  2. #define __glutwin32_h__
  3.  
  4. /* Copyright (c) Nate Robins, 1997. */
  5.  
  6. /* This program is freely distributable without licensing fees 
  7.    and is provided without guarantee or warrantee expressed or 
  8.    implied. This program is -not- in the public domain. */
  9.  
  10. #include "win32_x11.h"
  11. #include "win32_glx.h"
  12.  
  13. /* We have to undef some things because Microsoft likes to pollute the
  14.    global namespace. */
  15. #undef TRANSPARENT
  16.  
  17. /* Win32 "equivalent" cursors - eventually, the X glyphs should be
  18.    converted to Win32 cursors -- then they will look the same */
  19. #define XC_arrow               IDC_ARROW
  20. #define XC_top_left_arrow      IDC_ARROW
  21. #define XC_hand1               IDC_SIZEALL
  22. #define XC_pirate              IDC_NO
  23. #define XC_question_arrow      IDC_HELP
  24. #define XC_exchange            IDC_NO
  25. #define XC_spraycan            IDC_SIZEALL
  26. #define XC_watch               IDC_WAIT
  27. #define XC_xterm               IDC_IBEAM
  28. #define XC_crosshair           IDC_CROSS
  29. #define XC_sb_v_double_arrow   IDC_SIZENS
  30. #define XC_sb_h_double_arrow   IDC_SIZEWE
  31. #define XC_top_side            IDC_UPARROW
  32. #define XC_bottom_side         IDC_SIZENS
  33. #define XC_left_side           IDC_SIZEWE
  34. #define XC_right_side          IDC_SIZEWE
  35. #define XC_top_left_corner     IDC_SIZENWSE
  36. #define XC_top_right_corner    IDC_SIZENESW
  37. #define XC_bottom_right_corner IDC_SIZENWSE
  38. #define XC_bottom_left_corner  IDC_SIZENESW
  39.  
  40. #define XA_STRING 0
  41.  
  42. /* Private routines from win32_util.c */
  43. extern int gettimeofday(struct timeval* tp, void* tzp);
  44. extern void *__glutFont(void *font);
  45. extern int __glutGetTransparentPixel(Display *dpy, XVisualInfo *vinfo);
  46. extern void __glutAdjustCoords(Window parent, int *x, int *y, int *width, int *height);
  47.  
  48. #endif /* __glutwin32_h__ */
  49.